<?php
/**
 * Controller to manage news in admin area
 * 
 * @author Konstantin Shamko <konstantin.shamko@gmail.com> 
 * @version 0.0.1
 * @copyright  Copyright (c) 2009 Konstantin Shamko
 * @package News Module
 * @subpackage Controller
 * @license  New BSD License
 * 
 */
class admin_NewsController extends Bel_Controller_Aed {
	
	/**
	 * Initialization
	 *
	 */
	function init() {
		$this->_model = new Models_News ( );
		$this->_formname = 'news_form';
		parent::init ();
	}
	
	/**
	 * Sets featured param to 0 if it was not defined
	 *
	 */
	protected function _beforeModify(){
		if(!$this->_request->getParam('news_featured')){
			$this->_request->setParam('news_featured',0);
		}
	}
}